/*
 *  atBudget Personal Finance Management application
 *
 *  Copyright 2011, Ilia Frenkel <frenkel.ilia@gmail.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
	Categories tree. This tree is used in the categories management dialogue.
 */
Ext.define('ATB.view.category.List' ,{
	extend: 'Ext.tree.Panel',
	alias : 'widget.categorylist',
	store : 'Categories',
	title : 'Categories',
	hideHeaders: true,
	useArrows: true,
	lines: false,
	rootVisible: false,
	displayField: 'name',
	viewConfig: {
		emptyText: '<p style="text-align:center;color:#999999;font-weight: bold;font-size:120%;margin-top:2em">No payees found.</p>',
		singleSelect: true,
		allowDeselect: true,
		stripeRows: true,
	},
	bodyCls: 'atb-categorylist',

	initComponent: function() {
		//this.columns = [
		//	{header: 'Name', dataIndex: 'name', flex: 1}
		//];

		this.callParent(arguments);
	}
});
